// src/router/index.js
import {createRouter, createWebHashHistory} from 'vue-router';

const routes = [
    {
        path: '/setting',
        name: 'setting',
        component: () => import('../view/setting/index.vue'),
    },
    {
        path: '/',
        name: 'index',
        component: () => import('../view/index/index.vue'),
    },
    {
        path: '/vpn',
        name: 'vpn',
        component: () => import('../view/vpn/index.vue'),
    },
    {
        path: '/test/control',
        name: 'test',
        component: () => import('../view/vpn/test.vue'),
        meta: {hideNav: true}
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;